/**
 * 作者: wgx
 * 日期: 2025-04-28 16:16:16
 * 备注: 评审服测试服后台发放道具表
 */
package com.motu.monstercity.server.game.commondata.bag;

import io.vertx.core.json.JsonObject;

public class ReviewItemModel {
    protected int id; // id
    protected int itemId; // item_id
    protected String itemName; // item_name
    protected int itemNum; // item_num

    public ReviewItemModel() {
    }

    public ReviewItemModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        itemId = obj.containsKey("item_id") ? obj.getInteger("item_id") : 0;
        itemName = obj.containsKey("item_name") ? obj.getString("item_name") : "";
        itemNum = obj.containsKey("item_num") ? obj.getInteger("item_num") : 0;
    }

    public int getId() {
        return id;
    }

    public int getItemId() {
        return itemId;
    }

    public String getItemName() {
        return itemName;
    }

    public int getItemNum() {
        return itemNum;
    }

}
